

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Create ScheduledJob</title>         
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span>
            <span class="menuButton"><g:link class="list" action="list">ScheduledJob List</g:link></span>
        </div>
        <div class="body">
            <h1>Create ScheduledJob</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${scheduledJobInstance}">
            <div class="errors">
                <g:renderErrors bean="${scheduledJobInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="save" method="post" >
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="title">Title:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:scheduledJobInstance,field:'title','errors')}">
                                    <input type="text" id="title" name="title" value="${fieldValue(bean:scheduledJobInstance,field:'title')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="job">Job:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:scheduledJobInstance,field:'job','errors')}">
                                    <input type="text" id="job" name="job" value="${fieldValue(bean:scheduledJobInstance,field:'job')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="scheduleType">Schedule Type:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:scheduledJobInstance,field:'scheduleType','errors')}">
                                    <g:select id="scheduleType" name="scheduleType" from="${scheduledJobInstance.constraints.scheduleType.inList}" value="${scheduledJobInstance.scheduleType}" ></g:select>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="cronExpression">Cron Expression:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:scheduledJobInstance,field:'cronExpression','errors')}">
                                    <input type="text" id="cronExpression" name="cronExpression" value="${fieldValue(bean:scheduledJobInstance,field:'cronExpression')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="hours">Hours:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:scheduledJobInstance,field:'hours','errors')}">
                                    <input type="text" id="hours" name="hours" value="${fieldValue(bean:scheduledJobInstance,field:'hours')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="minutes">Minutes:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:scheduledJobInstance,field:'minutes','errors')}">
                                    <input type="text" id="minutes" name="minutes" value="${fieldValue(bean:scheduledJobInstance,field:'minutes')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="numberOfHours">Number Of Hours:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:scheduledJobInstance,field:'numberOfHours','errors')}">
                                    <input type="text" id="numberOfHours" name="numberOfHours" value="${fieldValue(bean:scheduledJobInstance,field:'numberOfHours')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="recipients">Recipients:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:scheduledJobInstance,field:'recipients','errors')}">
                                    <input type="text" id="recipients" name="recipients" value="${fieldValue(bean:scheduledJobInstance,field:'recipients')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="startDate">Start Date:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:scheduledJobInstance,field:'startDate','errors')}">
                                    <input type="text" id="startDate" name="startDate" value="${fieldValue(bean:scheduledJobInstance,field:'startDate')}"/>
                                </td>
                            </tr> 
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><input class="save" type="submit" value="Create" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
